#pragma once

#include "Common.h"

class Timer
{
#pragma region Singleton
public:
	static Timer* GetInstance()
	{
		if (!mInstance)
		{
			mInstance = new Timer();
		}
		return mInstance;
	}
	static void Kill()
	{
		delete mInstance;
		mInstance = 0;
	}
private:
	static Timer* mInstance;
	Timer();
	~Timer();
#pragma endregion

public:
	float GetDeltaTime(){ return mDeltaTime; }
	void Tick();
private:
	float mDeltaTime;
	float mLastTime;
};
